<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>JIT Cinas STS传递信息演示Demo</title>
    <link rel="stylesheet" href="<%=path%>/css/common.css" type="text/css" />
    <link rel="stylesheet" href="<%=path%>/css/innerstyle.css" type="text/css" />
    <object classid="clsid:06CA9432-D9BD-4867-8475-770B131E1759" id="JITDSignOcx" codebase="<%=path%>/cab/JITDSign.cab"
        width="0" height="0">
     </object>
     <object id="DWebSignSeal" classid='CLSID:77709A87-71F9-41AE-904F-886976F99E3E' codebase="<%=path%>/cab/WebSign.dll#version=4,0,6,0"
        width="0" height="0">
     </object>
     <script type="text/javascript" language="javascript" src="<%=path%>/js/WebDesign.js"></script>
     
     <script language="javascript" type="text/javascript">
     function addyinzhang(Leix) {
            var m = 'MaiFangYinZhang';
            var QM = 'MaiFQM';
            var maimlx = '6';
            var boolvar = true;
            if (maimlx == '6') {
                if (Leix == 'QianZhang') {
                    if ('1' == '1') {
                        if (DWebSignSeal.FindSeal(QM, 2) == '') {
                            alert("请先签名!!");
                            return;
                        }
                    }

                    if ('1' == '1') {
                        boolvar = addseal(m, 0, 0, 'ht_strMaiShRDH');
                    } else {
                        alert('签章功能未启用');
                        return;
                    }
                } else {
                    if ('1' == '1') {
                        boolvar = addseal(QM, 0, 0, 'ht_strMaiShRFDDBR');
                    } else {
                        alert('签名功能未启用');
                        return;
                    }
                }

            }
        
        }
    </script>
  </head>
  
  <body>
  <form>
        <input name="QianMing" type="button" id="QianMing" value="签名" onclick="addyinzhang('QianMing');" />
        <input name="gaizhang" type="button" id="gaizhang" value="签章" onclick="addyinzhang('QianZhang');" />
        <br>
        <br>
        <br>
        <table>
            <tr>
                <td style="width: 120px; text-align: left; border-top-style: none; border-right-style: none;
                    border-left-style: none; border-bottom-style: none;" class="pt3">
                    <font face="宋体"><span id="ht_strMaiShRDH"></span></font>
                    <TABLE  class="datalist" width="95%" cellspacing="0" cellpadding="0"   >
                    <TR class="altrow">
                    <TD nowrap   width="15%" align="right">结算单位名称:</TD><TD colspan="3"  rowspan="1"  class="data" width="105%">潍坊华奥有限公司</TD>
                    </TR>
                    <TR>
                    <TD nowrap   width="15%" align="right">结算单位住所:</TD><TD colspan="3"  rowspan="1"  class="data" width="105%">和平路121号</TD>
                   </TR>
                   <TR class="altrow">
                     <TD nowrap   width="15%" align="right">法定代表人:</TD><TD colspan="1"  rowspan="1"  class="data" width="35%">王喜</TD>
                   <TD nowrap   width="15%" align="right">电话:</TD><TD colspan="1"  rowspan="1"  class="data" width="35%">13823112223</TD>
                   </TR>
                    </TABLE>
                    
                </td>
                <td style="width: 120px; text-align: left; border-top-style: none; border-right-style: none;
                    border-left-style: none; border-bottom-style: none; height: 30px;" class="pt3">
                    <font face="宋体"><span id="ht_strMaiShRFDDBR"></span></font>
                    
                    <TABLE  class="datalist" width="95%" cellspacing="0" cellpadding="0"   >
                    <TR class="altrow">
                    <TD nowrap   width="15%" align="right">结算单位名称:</TD><TD colspan="3"  rowspan="1"  class="data" width="105%">潍坊华奥有限公司</TD>
                    </TR>
                    <TR>
                    <TD nowrap   width="15%" align="right">结算单位住所:</TD><TD colspan="3"  rowspan="1"  class="data" width="105%">和平路121号</TD>
                   </TR>
                   <TR class="altrow">
                     <TD nowrap   width="15%" align="right">法定代表人:</TD><TD colspan="1"  rowspan="1"  class="data" width="35%">王喜</TD>
                   <TD nowrap   width="15%" align="right">电话:</TD><TD colspan="1"  rowspan="1"  class="data" width="35%">13823112223</TD>
                   </TR>
                    </TABLE>
                </td>
            </tr>
        </table>
  </form>
  </body>
</html>
